﻿<Window
    xmlns:my1="clr-namespace:MultitouchApplication"
    x:Class="MultitouchApplication.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Surface News Reader"
    Height="350"
    Width="525"
    xmlns:my="http://schemas.microsoft.com/surface/2008" 
    Icon="/MultitouchApplication;component/Images/041_Sort.ico">
    <Grid>
        <my1:RssReader
            VerticalAlignment="Top"
            Visibility="Collapsed"
            HorizontalAlignment="Left"
            x:Name="_rssReader" />
        <my:ScatterView
            Name="_newsScatterViewer" DataContext="{Binding FeedItems, ElementName=_rssReader, Mode=TwoWay}">
            <my:ScatterView.ItemTemplate>
                <DataTemplate>
                    <StackPanel
                        Margin="10,10,10,10">
                        <Image
                            Source="{Binding Media}" />
                        <TextBlock
                            Text="{Binding Title}" />
                        <TextBlock
                            Text="{Binding Content}" />
                        <TextBlock
                            Text="{Binding DateTime}" />
                    </StackPanel>
                </DataTemplate>
            </my:ScatterView.ItemTemplate>
        </my:ScatterView>
    </Grid>
</Window>
